#!/usr/bin/env node

var lang = require('../src/lang.js');
var m = lang.commands_map;
var kk = [];
for (var k in m) {
  kk.push(k);
}
kk = kk.sort();
for (var i = 0; i < kk.length; ++i) {
  var k = kk[i];
  var v = m[k].args;
  l = k;
  if (v) {
    for (var j = 0; j < v.length; ++j) {
      l += ' ' + (v[j] ? 'EXPR' : 'NAME');
    }
  } else {
    l += ' EXPR EXPR ... end'
  }
  console.log(l);
}
